package com.tzy.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author 谭同学
 * @since 2022-03-29
 */
@TableName("shipping_address")
public class ShippingAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 收货人名字
     */
    private String consigneeName;

    /**
     * 收货地址
     */
    private String shippingAddress;

    /**
     * 手机号码
     */
    private String phoneNumber;

    /**
     * 省份编号
     */
    private Integer provinceId;

    /**
     * 城市编号
     */
    private Integer cityId;

    /**
     * 区域编号
     */
    private Integer districtId;

    /**
     * 是否是默认地址  1是 0否 默认否
     */
    private Integer isDefault;

    /**
     * 标签
     */
    private String tag;

    /**
     * 性别
     */
    private String sex;

    /**
     * 添加的时间
     */
    private LocalDateTime addedTime;

    /**
     * 修改的时间
     */
    private LocalDateTime modifyTime;

    /**
     * 0正常,1停用
     */
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }
    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }
    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }
    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }
    public Integer getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Integer districtId) {
        this.districtId = districtId;
    }
    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }
    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public LocalDateTime getAddedTime() {
        return addedTime;
    }

    public void setAddedTime(LocalDateTime addedTime) {
        this.addedTime = addedTime;
    }
    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ShippingAddress{" +
            "id=" + id +
            ", userId=" + userId +
            ", consigneeName=" + consigneeName +
            ", shippingAddress=" + shippingAddress +
            ", phoneNumber=" + phoneNumber +
            ", provinceId=" + provinceId +
            ", cityId=" + cityId +
            ", districtId=" + districtId +
            ", isDefault=" + isDefault +
            ", tag=" + tag +
            ", sex=" + sex +
            ", addedTime=" + addedTime +
            ", modifyTime=" + modifyTime +
            ", status=" + status +
        "}";
    }
}
